The environment setup ensures that all necessary packages for quantitative trading analysis are installed and loaded. This includes packages for data manipulation, financial analysis, plotting, and more.
This plot shows the closing prices of the Dow Jones Industrial Average (DJIA) and Nasdaq Composite Index from 2000 to 2024. The blue line represents DJIA, and the red line represents Nasdaq.
The histogram displays the distribution of daily returns for both DJIA and Nasdaq. The blue bars represent DJIA returns, and the red bars represent Nasdaq returns.
This scatter plot illustrates the annual returns of DJIA and Nasdaq. Each point represents the annual return for a given year, with blue points for DJIA and red points for Nasdaq.
This scatter plot shows the monthly returns of DJIA and Nasdaq, with blue points representing DJIA and red points representing Nasdaq.
The rolling 30-day volatility plot highlights the annualized volatility of DJIA (blue line) and Nasdaq (red line) over time.
This plot presents the rolling 30-day correlation between the daily returns of DJIA and Nasdaq.
The plot shows the cumulative overnight and intraday returns for both Nasdaq and DJIA. The different colors represent the various return types for each index.
This plot shows the DJIA closing prices along with the 50-day (blue) and 200-day (red) moving averages.
This plot shows the Nasdaq closing prices along with the 50-day (blue) and 200-day (red) moving averages.
This heatmap visualizes the correlations between the returns of DJIA and Nasdaq over different periods (daily, weekly, monthly).
This histogram shows the distribution of monthly returns for the NASDAQ Composite index, categorized by month.
This density plot illustrates the distribution of quarterly returns for the NASDAQ Composite index.
This bar plot displays the average monthly returns for the NASDAQ Composite index.
This bar plot shows the median monthly returns for the NASDAQ Composite index.
This plot depicts the VIX index and corresponding market sentiment scores over time, with different sentiment zones shaded.
This bar plot summarizes the average and median returns for the NASDAQ Composite index across different sentiment zones.
The Shiny application includes interactive plots for deeper analysis:
This interactive plot shows the drawdowns for both Nasdaq and Dow Jones indices.
This interactive dygraph illustrates the relative performance of the Nasdaq index compared to the Dow Jones index.
This interactive plot presents the rolling Sharpe ratios for both Nasdaq and Dow Jones.
This interactive plot compares the VIX index with the market indices (Nasdaq and Dow Jones), normalized to a common scale for better comparison.
This documentation covers the essential steps and visualizations for a comprehensive quantitative trading analysis using R. The analysis includes data handling, exploratory data analysis, volatility and correlation analysis, cumulative returns, moving averages, seasonal returns, sentiment-based performance, and interactive analysis using Shiny.